package com.gk.controller;

import com.gk.entity.CommonResult;
import com.gk.service.FeignService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class LoginController {
    @Resource
    FeignService feignService;

    @PostMapping("user/login")
    public CommonResult login(@RequestParam("username") String username,@RequestParam("password") String password){
        return feignService.login(username, password);
    }

}
